package buildermode;

/**
 * @author: zh
 * @date: 2021/12/17 20:15
 * @version: 1.0
 */
public class Zh0202Director {
    private Zh0202Builder builder;

    public Zh0202Director(Zh0202Builder builder) {
        this.builder = builder;
    }


    public Zh0202Player construct(int x){
        builder.buildBody();
        builder.buildCustume();
        builder.buildWeapon(x);
        return builder.getResult();
    }
}
